#include <stdlib.h>
#include <stdio.h>

int main(int argc, char* argv[])
{
   int size = atoi(argv[1]);
   int i=0;
   double a = 3.0;
   double* x = (double*) malloc(size * sizeof(double));
   double* y = (double*) malloc(size * sizeof(double));


   for(i =0; i<size; i+=4){
	x[i] = i;
	x[i+1] = i+1;
	x[i+2] = i+2;
	x[i+3] = i+3;
	y[i] = i/2.0;
	y[i+1] = (i+1)/2.0;
	y[i+2] = (i+2)/2.0;
	y[i+3] = (i+3)/2.0;
   }

   for(i=0; i<size; i++){
	y[i] = a*x[i]+y[i];
	y[i+1] = a*x[i+1]+y[i+1];
	y[i+2] = a*x[i+2]+y[i+2];
	y[i+3] = a*x[i+3]+y[i+3];
   }

   return 0;
}
